package com.yfuxdeer.youchat.dao;

import com.yfuxdeer.youchat.pojo.User;

import java.util.List;

public interface UserDao {

    User queryByUsernameAndPassword(String username, String password) throws Exception;

    User findUserById(String user_id) throws Exception;

    void update(User user) throws Exception;

    void updatePassword(String username, String password) throws Exception;

    void insert(User user) throws Exception;

    List<User> searchUserByInfo(String username, String info) throws Exception;

    User findUserByPhoneOrEmail(String info);
}
